public class ThirdPartyFruitImpl implements ThirdPartyFruit {
    private String name;
    private double price;

    public ThirdPartyFruitImpl() {
        this.name = "第三方水果";
        this.price = 5.0;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    @Override
    public String getFruiteName() {
        return null;
    }

    @Override
    public float getFruitPrice() {
        return 0;
    }
}